// src/api/alovaInstance.js
import { createAlova } from 'alova';
import GlobalFetch from 'alova/fetch';
import VueHook from 'alova/vue'; // 如果是React项目，使用'alova/react'

export const request = createAlova({
  baseURL: 'https://127.0.0.1', // 你的API基础地址
  statesHook: VueHook,
  requestAdapter: GlobalFetch(),
  responded: response => response.json()
});